package com.heima.behavior.controller;

import com.heima.behavior.dtos.CollectionBehaviorDto;
import com.heima.behavior.service.CollectionBehaviorService;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收集行为控制器
 *
 * @author DiXiaoNie
 * @date 2023/01/03
 * @since 2023/1/3 20:23
 */
@RestController
@RequestMapping("/api/v1/collection_behavior")
public class CollectionBehaviorController {
    @Autowired
    private CollectionBehaviorService collectionBehaviorService;


    @PostMapping
    public ResponseResult collection(@RequestBody CollectionBehaviorDto dto) {
        return this.collectionBehaviorService.collection(dto);
    }
}
